﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<t_205_verk_hopur_12.Models.AdminMenuViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Stjórnborð
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Stjórnborð</h2>
    <div id="AdminLeft">
        <ul>
            <% if (Model.Channel.Autocracy == true)
               {%>
                <li><%= Html.ActionLink("Kosningar", "Election", "Channel", new { id = Model.Channel.ID }, null)%></li>
            <% } %>
            <li><%= Html.ActionLink("Sarpur", "Videos", "Channel", new { id = Model.Channel.ID }, null)%></li>
            <% if (Model.IsOwner)
               { %>
            <li><%= Html.ActionLink("Tilkynningar", "Notice", "Channel", new { id = Model.Channel.ID }, null)%></li>
            <li><%= Html.ActionLink("Starfsmenn", "Employees", "Channel", new { id = Model.Channel.ID }, null)%></li>
            <li><%= Html.ActionLink("Umsóknir", "Applications", "Channel", new { id = Model.Channel.ID }, null)%></li>
            <li><%= Html.ActionLink("Breyta Upplýsingum", "Edit", "Channel", new { id = Model.Channel.ID }, null)%></li>
            <% } %>
        </ul>
    </div>
    <div id="AdminRight">
        <ul>
        <li><%= Html.ActionLink("Skrá nýtt myndband", "AddVideo", new {id = Model.Channel.ID } )%></li>
        <% if (Model.IsOwner)
           { %>
            <li><%= Html.ActionLink("Búa til tilkynningu", "NoticeCreate", new { id = Model.Channel.ID }, null)%></li>
            <li><%= Html.ActionLink("Breyta dagskrá", "EditSchedule", new { channelID = Model.Channel.ID }, null)%></li>
        <% } %>
        </ul>
    </div>
    <div class="clear"></div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LogoText" runat="server">
    <%= Html.ActionLink(Model.Channel.Name, "Index", new { id = Model.Channel.ID }) %>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MenuBar" runat="server">
    <% Html.RenderPartial("AdminChannelMenuBar", Model.Channel); %>
</asp:Content>
